<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class cart extends CI_Controller {

	function __construct(){
		parent::__construct();
		$this->load->model('product/product_model');
	}

	public function index(){
		$data['product_newest'] = $this->product_model->get_product(0, 0, 6, 0, 'create_date', 'DESC');
		$data['product_hot'] = $this->product_model->get_product_hot(0, 6);
		$data['tpl'] = 'home/index';
		$this->load->view('_layout/index', $data);
	}

	public static function block_cart(){
	    $this->load->view('block');
	}
}